import request from '@/utils/request'

// 查询充值提现流水列表
export function listWalletRechargeCash(query) {
  return request({
    url: '/boot/walletRechargeCash/list',
    method: 'get',
    params: query
  })
}

// 查询充值提现流水详细
export function getWalletRechargeCash(id) {
  return request({
    url: '/boot/walletRechargeCash/' + id,
    method: 'get'
  })
}

// 上分
export function upScore(data) {
  return request({
    url: '/boot/walletRechargeCash/createRecharge',
    method: 'post',
    data: data
  })
}

// 下分
export function downScore(data) {
  return request({
    url: '/boot/walletRechargeCash/createCash',
    method: 'post',
    data: data
  })
}

// 确认订单
export function confirmScore(id) {
  return request({
    url: `/boot/walletRechargeCash/confirmRecharge/${id}`,
    method: 'post',
  })
}

// 驳回订单
export function refuseScore(data) {
  return request({
    url: `/boot/walletRechargeCash/refuseRecharge`,
    method: 'post',
    data: data,
  })
}

